let init=""
function userImgReducer(preVal=init,action) {
    let {type,data}=action
    switch (type) {
        case 'userImg':
            return preVal=data
        default:
            return preVal
    }
}
export default userImgReducer